public class ComputeFact
{
   /**
      A method to compute n factorial (n!) recursively
      @param n a number >= 0
      @return the value of n!
   */
   public static int factorial(int n)
   {
      if(n==1||n==0) return 1;
      return factorial(n-1)*n;
   }
}